num = [i for i in range(5)]
print(num)

list = []
for i in range(5):
    list.append(i)
    print(list)
print("finally:",list)